package com.tupi.project.di.component;

import com.tupi.project.base.App;
import com.tupi.project.component.PreferencesHelper;
import com.tupi.project.di.module.AppModule;
import com.tupi.project.di.module.HttpModule;
import com.tupi.project.http.HttpHelper;

import javax.inject.Singleton;

import dagger.Component;

/**
 * Created by codeest on 16/8/7.
 */

@Singleton
@Component(modules = {AppModule.class, HttpModule.class})
public interface AppComponent {

    App getContext();  // 提供App的Context

//    DataManager getDataManager(); //数据中心

    HttpHelper getRetrofitHelper();  //提供http的帮助类

//    RealmHelper realmHelper();    //提供数据库帮助类
//
    PreferencesHelper getPreferencesHelper(); //提供sp帮助类
}
